<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.sql.ResultSet" import="domain.PropertyScrap"%>
<jsp:useBean id="PropertySco" class="repository.PropertyScrapDAO"></jsp:useBean>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>修改报废资产表</title>
</head>
<body class="bobdysize">
<%
	String ID=request.getParameter("ID");
	session.setAttribute("ID", ID);
	 ResultSet rs = PropertySco.query(ID);	
	PropertyScrap all = new PropertyScrap();
	while(rs.next()){
		all.setID(rs.getString("物品ID"));
		all.setName(rs.getString("物品名称"));
		all.setLocation(rs.getString("物品源属地"));
		all.setNumber(rs.getString("数量"));
	}
%>
	<form class="form-horizontal" role="form" action="PropScoMod" method="post">
		<fieldset>
		<div class="list">
			<legend>修改资产报废信息</legend>
			<div class="form-group">
			<div class="line">
				<label class="col-sm-2 control-label" for="ID">物&nbsp;品&nbsp;&nbsp;ID&nbsp;&nbsp;&nbsp;</label>
				<div class="col-sm-4">
					<input class="form-control" name="ID" id="ID" type="text"
						placeholder="<%=all.getID() %>" />
				</div>
				</div>
				<div class="line">
				<label class="col-sm-2 control-label" for="name">物品&nbsp;名称&nbsp;</label>
				<div class="col-sm-4">
					<input class="form-control" name="name" id="name" type="text"
						placeholder="<%=all.getName() %>" />
				</div>
			</div>
			</div>
			<div class="line">
				<label class="col-sm-2 control-label" for="lication">物品源属地</label>
				<div class="col-sm-4">
					<input class="form-control" name="sorlocation" id="location" type="text"
						placeholder="<%=all.getLocation() %>" />
				</div>
				</div>
				<div class="line">
				<label class="col-sm-2 control-label" for="ds_password">数&nbsp;&nbsp;&nbsp;&nbsp;量&nbsp;&nbsp;&nbsp;&nbsp;</label>
				<div class="col-sm-4">
					<input class="form-control" name="number" id="ds_password" type="text"
						placeholder="<%=all.getNumber() %>" />
				</div>
				</div>
				</br>
				<button type="submit" class="btn" >修改</button>	
				<button type="submit" class="btn" >退出</button>	
			</div>
		</fieldset>
	</form>
</body>
<style>
.bobdysize {
	background-color: rgb(30,170,62);
}
fieldset {
	color: blue;
	background: url(./img/back.gif);
}
.form-horizontal {
	width: 30%;
	margin: 0 auto;
}
.list {
	text-align: center;
}
.line {
	line-height: 45px;
}
.form-control {
	line-height: 30px;
}
.col-sm-4 {
	display: inline;
}
.col-sm-2 .control-label {
	width:100px;
}
.btn {
	width: 20%;
	padding: 0 5%;
	margin: 0 5%;
	height: 35px;
}
</style>
</html>
